//
//  BGDBInnerOperationProtocol.h
//  BTDatabaseAccesser
//
//  Created by XMac on 2018/4/24.
//  Copyright © 2018年 XMac. All rights reserved.
//

#import <Foundation/Foundation.h>
@class FMResultSet;
@protocol BGDBInnerOperationProtocol <NSObject>
- (BOOL)insertObject:(id)obj;

- (BOOL)deleteWithClass:(Class)clz condition:(NSString *)condition value:(va_list)args;

- (BOOL)updateWithItem:(id)obj;

- (NSArray *)queryItemsWithClass:(Class)clz condition:(NSString *)condition value:(va_list)args;

- (BOOL)deleteAllWithClass:(Class)clz;


- (BOOL)executeUpdate:(NSString *)sql;

- (FMResultSet *)executeQuery:(NSString *)sql;

@optional
- (id)itemFromResultSet:(FMResultSet *)resultSet;

@end
